package pojo;


/*
* Pojo类 —— 封装用户行为数据、对象（即商品）等信息
* */
public class UserBehavior {
    private Long itemId; // 商品编号
    private Long userId; // 用户编号
    private Integer categoryId;
    private String behavior;
    private Long timestamp; // 订单创建时间

    public UserBehavior(){}

    public UserBehavior(Long userId, Long itemId, Integer categoryId, String behavior, Long timestamp) {
        this.itemId = itemId;
        this.userId = userId;
        this.categoryId = categoryId;
        this.behavior = behavior;
        this.timestamp = timestamp;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getBehavior() {
        return behavior;
    }

    public void setBehavior(String behavior) {
        this.behavior = behavior;
    }

    @Override
    public String toString() {
        return "UserBehavior{" +
                "itemId=" + itemId +
                ", userId=" + userId +
                ", categoryId=" + categoryId +
                ", timestamp=" + timestamp +
                ", behavior='" + behavior + '\'' +
                '}';
    }
}

